package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;
import com.itheima.pojo.User;

import java.util.List;
import java.util.Map;
import java.util.Set;

public interface UserService {
    User userByUserName(String username);

    void changePassword(String pass, String username);

    PageResult findPage(QueryPageBean queryPageBean);

    void add(User user);

    Map findByid(Integer id);

    void updata(User user);

    Set<Role> roleFindAll();

    void delete(Integer id);

    Integer findIdByUsername(String username);
}
